﻿@using CustomGrid
@{
    ViewBag.Title = "Index";
}
<div class="well">
    @CustomGrid.DrawGrid("data", Model,
                            CustomGrid.columns(
                            CustomGrid.column("Name", "Name", true, "left", "text"),
                            CustomGrid.column("Email", "Email", true, "left", "text"),
                            CustomGrid.column("Phone", "Telp", true, "left", "text"),
                            CustomGrid.column("Website", "Website", true, "left", "text"),
                            CustomGrid.column("Company", "Company", true, "left", "text"),
                            CustomGrid.column("Action",
                                "<a href=\"/admin/contact/details/{0}\"><i class=\"icon-search\"></i></a>&nbsp;&nbsp;" +
                                "<a href=\"/admin/contact/delete/{0}\" onclick=\"javascript:return confirm('Are you sure you want to delete this?');\"><i class=\"icon-trash\"></i></a>", new[] { "ContactId" })),
    Request.QueryString)
</div>
@CustomGrid.PagingNumbers("data", Request.QueryString, ViewBag.totalRecords, "20")

